<?xml version="1.0" encoding="utf-8"?>


<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:card_view="http://schemas.android.com/apk/res-auto"
    android:id="@+id/card_view"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    card_view:cardBackgroundColor="#fff"
    card_view:cardCornerRadius="2dp"
    card_view:cardElevation="2dp"
    android:padding="2dp"
    android:layout_marginLeft="8dp"
    android:layout_marginRight="8dp"
    android:layout_marginTop="4dp"
    android:layout_marginBottom="4dp"
    >
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        style="@style/WrapWidth_WrapHeight"
        android:background="#fff"
        android:descendantFocusability="afterDescendants">

        <TextView
            android:id="@+id/title"
            style="@style/Widget.CardItem.Text"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:background="#fff"
            android:focusableInTouchMode="false"
            android:paddingBottom="18dp"
            android:paddingTop="18dp"
            android:text="Led-lampa"
            android:textAppearance="@android:style/TextAppearance.Large"
            android:textColor="#333333" />

        <TextView
            android:id="@+id/label_1"
            style="@style/Widget.CardItem.Text"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@id/title"
            android:layout_marginBottom="10dp"
            android:text="@string/result_price_text"
            android:textAppearance="@android:style/TextAppearance.Small"
            android:textColor="#333333" />

        <TextView
            android:id="@+id/label_2"
            style="@style/Widget.CardItem.Text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@id/label_1"
            android:layout_marginBottom="10dp"
            android:text="@string/result_savings_label"
            android:textAppearance="@android:style/TextAppearance.Small"
            android:textColor="#333333" />

        <TextView
            android:id="@+id/label_3"
            style="@style/WrapWidth_WrapHeight"
            android:layout_alignBaseline="@id/label_2"
            android:layout_toRightOf="@id/label_2"
            android:gravity="start"
            android:text="500 kr"
            android:textAppearance="@android:style/TextAppearance.Medium"
            android:textColor="@color/green_primary"
            android:textStyle="bold" />

        <ImageView
            android:id="@+id/energyclass1"
            style="@style/Widget.CardItem"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@id/label_2"
            android:contentDescription="@string/energy_rating"
            android:importantForAccessibility="no"
            />
        <ImageView
            android:id="@+id/energyclass2"
            style="@style/Widget.CardItem"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_marginLeft="45dp"
            android:layout_below="@id/label_2"
            android:contentDescription="@string/energy_rating"
            android:importantForAccessibility="no"
            />

        <View
            android:id="@+id/divider2"
            android:layout_width="fill_parent"
            android:layout_height="2dp"
            android:layout_below="@id/energyclass1"
            android:layout_marginTop="18dp"
            android:background="#eee" />

        <Button
            android:id="@+id/result_card_btn_change_price"
            style="@style/EnergiMyndigheten.FlatButton"
            android:layout_width="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_below="@id/divider2"
            android:focusable="true"
            android:focusableInTouchMode="false"
            android:onClick="onXmlClick"
            android:layout_margin="@dimen/dimen_s"
            android:text="@string/result_change_label" />

        <Button
            android:id="@+id/result_card_btn_calculation"
            android:layout_width="wrap_content"
            style="@style/EnergiMyndigheten.FlatButton"
            android:layout_below="@id/divider2"
            android:layout_toRightOf="@id/result_card_btn_change_price"
            android:layout_margin="@dimen/dimen_s"
            android:focusable="true"
            android:focusableInTouchMode="false"
            android:onClick="onXmlClick"
            android:text="@string/result_calculation_label" />

        <Button
            android:id="@+id/result_card_btn_info"
            android:layout_width="wrap_content"
            style="@style/EnergiMyndigheten.FlatButton"
            android:layout_below="@id/divider2"
            android:layout_toRightOf="@id/result_card_btn_calculation"
            android:layout_margin="@dimen/dimen_s"
            android:focusable="true"
            android:focusableInTouchMode="false"
            android:onClick="onXmlClick"
            android:text="@string/result_more_label" />
    </RelativeLayout>

</android.support.v7.widget.CardView>
